//
//  CaptureSelectViewCell.m
//  Unity-iPhone
//
//  Created by Karl on 2017/3/30.
//
//

#import "CaptureSelectViewCell.h"

@interface CaptureSelectViewCell ()
@property (nonatomic,strong) UIImageView *cellImg;
@end

@implementation CaptureSelectViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _cellImg = [UIImageView new];
        _cellImg.clipsToBounds = YES;
        [_cellImg setContentMode:UIViewContentModeScaleAspectFill];
        [self.contentView addSubview:_cellImg];
    }
    return self;
}
- (void)setImage:(NSString *)image{
    _image = image;
    [_cellImg setImage:[UIImage imageNamed:_image]];
}
- (void)layoutSubviews{
    [super layoutSubviews];
    _cellImg.left = 0;
    _cellImg.top = 0;
    _cellImg.width = self.width;
    _cellImg.height = self.height;
}
@end
